package com.wang.learrn.common.data;

import lombok.*;

import java.util.Date;

/**
 * @author : wcz
 * @version V1.0
 * @Description: TODO
 */
@ToString
@AllArgsConstructor
public  class TenantEntity extends BaseEntity{
    @Getter
    @Setter
    private Long tenantId;

    public void initEntity(Long operatorId,Long tenantId){
        Date now = new Date();
        setCreateTime(now);
        setUpdateTime(now);
        setCreateUser(operatorId);
        setUpdateUser(operatorId);
        setTenantId(tenantId);
    }
}
